package com.kingint.web.util.spring;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Variable implements InitializingBean {

    @Value("${dueros.appid}")
    private String getAPPID;
    @Value("${dueros.appsecret}")
    private String getAPPSECRET;


    //公开静态变量
    public static String APPID;
    public static String APPSECRET;

    @Override
    public void afterPropertiesSet() throws Exception {
        APPID = getAPPID;
        APPSECRET = getAPPSECRET;
    }
}
